<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>创建部门</title>
</head>
<body>
<h1>创建部门</h1>
<form action="/saveDept" method="post">
    <p>部门编号：<input type="text" name="deptCode" th:value="${dept?.deptCode}"></p>
    <p>部门名称：<input type="text" name="deptName" th:value="${dept?.deptName}"></p>
    <p>负责人：<input type="text" name="manager" th:value="${dept?.manager}"></p>
    <p>办公地址：<input type="text" name="address" th:value="${dept?.address}"></p>
    <p><button type="submit">提交</button></p>
</form>
<p th:text="${msg}"></p>
</body>
</html>